Skip to content

[ENHANCEMENT] Implement working Variables Types for POLYMOD_STRICT_SYNTAX [BIG BREAKING CHANGE] - #558

Open
PurSnake wants to merge 1 commit into
FunkinCrew:developfrom
PurSnake:scrict-syntax/types
Open

PurSnake wants to merge 1 commit into
FunkinCrew:developfrom
PurSnake:scrict-syntax/types

Conversation

@PurSnake

Copy link
Copy Markdown
Contributor

and remove lemz1's implementation, cool but outdated prolly
sorry

This pr will make polymod properly initialize types for variables, methods, classes and etc

Now type declaratin will matter

class ModClass1
{
  public function new() {}
}

class ModClass2
{
  public function new() {}
}

class Example
{
  public function test():Void
  {
    var object:ModClass1 = new ModClass2(); // will give typing errror
  }
}

This shit has hit development hell, i couldnt drop it lmao

@PurSnake
PurSnake force-pushed the scrict-syntax/types branch from b7bcc05 to e846e2f Compare October 14, 2026 14:34
Comment thread polymod/hscript/_internal/PolymodScriptClassMacro.hx Outdated
Comment thread polymod/hscript/_internal/PolymodScriptClassMacro.hx Outdated
Comment thread polymod/hscript/_internal/PolymodScriptClassMacro.hx Outdated
Comment thread polymod/hscript/_internal/PolymodScriptClassMacro.hx Outdated
Comment thread polymod/hscript/_internal/PolymodScriptClassMacro.hx Outdated
@PurSnake
PurSnake marked this pull request as draft October 15, 2026 10:10
@PurSnake

PurSnake commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Resolving convos, cuz im reworking types, removing a lot of runtime checks and deleting ScriptTypeMetadata, its useless

@PurSnake PurSnake changed the title [ENHANCEMENT] Implement working Variables Types for POLYMOD_STRICT_SYNTAX [ENHANCEMENT] Implement working Variables Types for POLYMOD_STRICT_SYNTAX [BIG BREAKING CHANGE] Oct 15, 2026
@PurSnake
PurSnake force-pushed the scrict-syntax/types branch 2 times, most recently from 08656c3 to 18efe6e Compare October 15, 2026 16:27
@PurSnake
PurSnake marked this pull request as ready for review October 15, 2026 16:32
@PurSnake
PurSnake force-pushed the scrict-syntax/types branch from c3ddb77 to 3b1fcca Compare October 15, 2026 16:32
and remove lemz1's implementation, cool but outdated prolly
@PurSnake
PurSnake force-pushed the scrict-syntax/types branch from 3b1fcca to 7213e76 Compare October 15, 2026 17:56
@PurSnake

Copy link
Copy Markdown
Contributor Author

Done

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants